package scau.zxck.constant;

/**
 * Created by lsp on 27/11/2016.
 */
public interface CODEDEMO {
    /**
     * 标记说明
     * TAB: 四个空格缩进
     * B: 一个空格
     * T: 数据类型，首字母大写，对象类型
     * P: 属性名，首字母大写
     * p: 属性名，首字母小写
     * c: 字段名,下划线命名法
     * NL: 新行 NewLine，'\n'
     * PL: 参数列表
     * C:类名 首字母大写
     * CS:构造函数的主体语句
     */
    public static String DEFINITION_DEMO = "#TAB#private#B##T##B##p#;#NL##NL#";

    public static String CONSTRUCTOR_DEMO = "#TAB#public#B##C#(#PL#)#B#{#NL##CS##TAB#}#NL##NL#";

    public static String CONSTRUCTOR_STATEMENT_DEMO = "#TAB##TAB#this.#p##B#=#B##p#;#NL#";

    public static String GETTER_DMEO = "#TAB#public#B##T##B#get#P#()#B#{#NL##TAB##TAB#return#B##p#;" +
            "#NL##TAB#}#NL##NL#";

    public static String SETTER_DEMO = "#TAB#public#B#void#B#set#P#(#T##B##p#)" +
            "#B#{#NL##TAB##TAB#this.#p##B#=#B##p#;#NL##TAB#}#NL##NL#";

    public static String MAPPER_DEMO = "#TAB##TAB#<result#B#property=\"#p#\" " +
            "column=\"#c#\"/>#NL#";

    public static String TAB = "    ";
    public static String B = " ";
    public static String NL = "\n";

    public static String F_TAB = "#TAB#";
    public static String F_B = "#B#";
    public static String F_T = "#T#";
    public static String F_p = "#p#";
    public static String F_P = "#P#";
    public static String F_NL = "#NL#";
    public static String F_C = "#C#";
    public static String F_PL = "#PL#";
    public static String F_CS = "#CS#";
    public static String F_c = "#c#";


}
